<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>
<f:view>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1><h:outputText value="JavaServer Faces" /></h1>
            <h:form>
                <rich:panel header="Simple Echo">
                   <h:inputText size="50" value="#{richFacesBean.text}" >
                        <a4j:support event="onkeyup" reRender="rep"/>
                   </h:inputText>
                   <h2><h:outputText value="#{richFacesBean.text}" id="rep"/></h2>
                </rich:panel>
            </h:form>
    </body>
</html>
</f:view>
